package com.easy.mapper;

import com.easy.bean.Book;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookDao {

    int add(@Param("param") Book book);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Book book);

    Book one(@Param("id") Integer id);

    List<Book> all(@Param("param") Book book);

    int pageCount(@Param("param") Book book);

    List<Book> page(@Param("page") Page page, @Param("param") Book book);

}
